package org.jeecg.modules.kc.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.rooms.entity.CesGoods;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: kc_stock_detail
 * @Author: jeecg-boot
 * @Date:   2023-04-18
 * @Version: V1.0
 */
@Data
@TableName("kc_stock_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="kc_stock_detail对象", description="库存记录详情")
public class KcStockDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**关联租户*/
	@Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private String tenantId;
	/**关联酒店*/
	@Excel(name = "关联酒店", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private String hotelId;
	/**库存id*/
	@Excel(name = "库存id", width = 15)
    @ApiModelProperty(value = "库存id")
    private String stockId;
    /**库存id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private String goodId;
	/**入库供货商品/出库仓库商品id*/
	@Excel(name = "入库供货商品/出库仓库商品id", width = 15)
    @ApiModelProperty(value = "入库供货商品/出库仓库商品id")
    private String supplierInGoodsId;
	/**成本价*/
	@Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private BigDecimal price;
	/**出入库数量*/
	@Excel(name = "出入库数量", width = 15)
    @ApiModelProperty(value = "出入库数量")
    private Integer num;

    @TableField(exist = false)
    private CesGoods cesGoods;

    @TableField(exist = false)
    private String goodUnit;
    @TableField(exist = false)
    private String spec;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private Integer stockNum;
}
